package cn.gson.springboot.model.service.cusservice;

import cn.gson.springboot.model.mapper.cusmapper.HomePageMapper;
import cn.gson.springboot.model.vo.cusvo.HomePageVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class HomePageService {
    @Autowired
    HomePageMapper homePageMapper;//首页mapper

    //    查询时间段回款
    public List<HomePageVo> selectShouCts(Integer empId){
        return homePageMapper.selectShouCts(empId);
    }

    //    查询首页某个时间段新增的客户、商机、订单、日志数量
    public List<HomePageVo> selectSaveNum(Integer empId){
        return homePageMapper.selectSaveNum(empId);
    }
}
